﻿using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Domain.Entities.Auditing;

namespace Coway.Ordering.Sellers
{
    /// <summary>
    /// 销售者实体
    /// </summary>
    public class Seller : FullAuditedEntity<string>
    {
        protected Seller() { }

        public Seller(string id, string code, string name, string phone, string email, string managerEmail)
        {
            Id = id;
            Code = code;
            Name = name;
            Phone = phone;
            EMail = email;
            ManagerEmail = managerEmail;
        }
        public void SetId(string id)
        {
            this.Id = id;
        }

        /// <summary>
        /// 销售代号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 销售姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 销售电话
        /// </summary>
        public string Phone { get; set; }

        /// <summary>
        /// 销售人员的电子邮件
        /// </summary>
        public string EMail { get; set; }

        /// <summary>
        /// 经理邮箱
        /// </summary>
        public string ManagerEmail { get; set; }
    }
}
